package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-11-21 14:20:55 
 * @description 视频接口日志表（天/月） 
 */
@Data
@TableName(value ="yx_video_interface_log")
@ApiModel(value = "视频接口日志表（天/月）" , description="yx_video_interface_log")
public class YxVideoInterfaceLogEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "log_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="日志ID")
    private Long logId;

    @TableField(value="intf_type")
    @ApiModelProperty(value="接口标识")
    private String intfType;

    @TableField(value="intf_name")
    @ApiModelProperty(value="接口名称")
    private String intfName;

    @TableField(value="buss_id")
    @ApiModelProperty(value="对象主键(视频/订单的ID等)")
    private String bussId;

    @TableField(value="url")
    @ApiModelProperty(value="调用地址")
    private String url;

    @TableField(value="create_time")
    @ApiModelProperty(value="调用时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="request_msg")
    @ApiModelProperty(value="请求参数")
    private String requestMsg;

    @TableField(value="call_type")
    @ApiModelProperty(value="调用类型 1:客户端 2：服务端")
    private Integer callType;

    @TableField(value="response_msg")
    @ApiModelProperty(value="响应结果")
    private String responseMsg;

    @TableField(value="flag")
    @ApiModelProperty(value="成功标识 0:失败 1：成功")
    private Integer flag;

    @TableField(value="err_msg")
    @ApiModelProperty(value="异常信息")
    private String errMsg;

}
